
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class Usuario extends UnicastRemoteObject implements IUsuario/*, Serializable*/ {
	
	private static final long serialVersionUID = 5912048366712583477L;
	private ICliente cliente;
	private String nome;

    public Usuario(ICliente cliente, String nome) throws RemoteException{
    	this.cliente=cliente;
    	this.nome=nome;
    }
    
	@Override
    public String getNome()throws RemoteException{
        return nome;
    }
	
	@Override
    public void setNome(String nome)throws RemoteException{
        this.nome=nome;
    }
	
	@Override
    public ICliente getCliente()throws RemoteException{
        return cliente;
    }
	
	@Override
    public void setCliente(ICliente cliente)throws RemoteException{
        this.cliente=cliente;
    }
	
}
